package com.clazzwork;
import java.util.Random;

/**
 * @author nmm
 * @date 2024-03-2024/3/18
 * @deriction njm......
 */
public class MyThread extends Thread{

    public MyThread(String name, String color) {
        super(name);
        this.color = color;
    }

    Random random = new Random();
    Integer[] rgb = new Integer[3];

    private String color="";
    public MyThread(MyRunnable run1) {

    }

    public MyThread(String color) {
        this.color=color;
    }
    @Override
    public void run() {
        System.out.println(color+""+random.nextInt(256));
    }
}